﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="TTIServer.PASLayout"
	x:Name="UserControl" Height="672" Width="483.286">

	<UserControl.Resources>
		<Style TargetType="{x:Type ComboBox}" x:Key="ComboBoxStyle">
			<Setter Property="Background" Value="#FF5584B4"/>
		</Style>
		<Style TargetType="ListBoxItem" x:Key="ComboBoxItemBG">
			<Setter Property="Opacity" Value="1" />
			<Setter Property="Background"	Value="#FF5584B4"/>
		</Style>
		<ControlTemplate x:Key="DTK2100_PTKX40_ComboBox" TargetType="{x:Type ComboBox}">
			<Grid Background="#FF5584B4">
				<Viewbox>
					<ContentControl Margin="5"></ContentControl>
				</Viewbox>
			</Grid>
		</ControlTemplate>
		<ControlTemplate x:Key="DTK2100_PTKX40_Button" TargetType="{x:Type Button}">
			<Grid MaxHeight="25" Background="DarkGray">
				<Grid Margin="1"  x:Name="xTK_Background">
					<Grid.Background>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="Black" Offset="0.259"/>
							<GradientStop Color="#FF9f9f9f"/>
						</LinearGradientBrush>
					</Grid.Background>
					<Viewbox>
						<ContentControl Margin="3" FontSize="9" FontFamily="Segoe" Content="{TemplateBinding Content}" Foreground="White"/>
					</Viewbox>
				</Grid>
			</Grid>
			<ControlTemplate.Triggers>
				<Trigger Property="Button.IsPressed" Value="True">
					<Setter TargetName="xTK_Background" Property="Background">
						<Setter.Value>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="Black" Offset="0.259"/>
								<GradientStop Color="#FF7f7f7f"/>
							</LinearGradientBrush>
						</Setter.Value>

					</Setter>
				</Trigger>
			</ControlTemplate.Triggers>
		</ControlTemplate>

	</UserControl.Resources>

	<Grid x:Name="LayoutRoot" Background="#FF5584B4">
		<Canvas x:Name="DisplayCanvas" Margin="30,34,33.286,0" Height="262" VerticalAlignment="Top">
			<Image x:Name="DisplayImg" Height="262" Width="420"/>
		</Canvas>
		<TextBox x:Name="txtOffsetX" HorizontalAlignment="Left" Height="23" Margin="94,442,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="55" Text="0"  PreviewTextInput="txtOffsetX_PreviewTextInput" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
		<TextBox x:Name="txtOffsetY" HorizontalAlignment="Left" Height="23" Margin="94,495,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="55"  HorizontalContentAlignment="Center" VerticalContentAlignment="Center" PreviewTextInput="txtOffsetY_PreviewTextInput"/>
		<TextBox x:Name="txtPixelsX" HorizontalAlignment="Left" Height="23" Margin="188,442,0,0" TextWrapping="Wrap" Text="2560" VerticalAlignment="Top" Width="92" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" IsReadOnly="True"/>
		<TextBox x:Name="txtPixelsY" HorizontalAlignment="Left" Height="23" Margin="188,495,0,0" TextWrapping="Wrap" Text="1600" VerticalAlignment="Top" Width="92" HorizontalContentAlignment="Center" IsReadOnly="True" VerticalContentAlignment="Center"/>
		<CheckBox x:Name="sfEnable" Content="Enable Digitizer Scaling" HorizontalAlignment="Left" Margin="94,370,0,0" VerticalAlignment="Top" IsChecked="True" Height="21" Width="161"/>
		<Label Content="X Origin" HorizontalAlignment="Left" Margin="96,416,0,0" VerticalAlignment="Top"/>
		<Label Content="Y Origin" HorizontalAlignment="Left" Margin="96,470,0,0" VerticalAlignment="Top"/>
		<Label Content="Primary Screen X Pixels" HorizontalAlignment="Left" Margin="172,416,0,0" VerticalAlignment="Top"/>
		<Label Content="Primary Screen Y Pixels" HorizontalAlignment="Left" Margin="172,469,0,0" VerticalAlignment="Top"/>
		<Canvas Margin="0,554,0,93" HorizontalAlignment="Center" VerticalAlignment="Center">
			<Button Content="OK" HorizontalAlignment="Left" Template="{StaticResource ResourceKey=DTK2100_PTKX40_Button}" VerticalAlignment="Top" Width="75" IsDefault="True" Canvas.Left="-141" Canvas.Top="3"/>
			<Button Content="Apply" HorizontalAlignment="Left" Template="{StaticResource DTK2100_PTKX40_Button}" VerticalAlignment="Top" Width="75" Click="Button_Click" Canvas.Left="-44" Canvas.Top="3"/>
			<Button Content="Cancel" HorizontalAlignment="Left" Template="{StaticResource DTK2100_PTKX40_Button}" VerticalAlignment="Top" Width="75" IsCancel="True" Canvas.Left="52" Canvas.Top="3"/>
		</Canvas>
		<TextBox x:Name="txtPixelsTabletX" HorizontalAlignment="Left" Height="23" Margin="316,442,0,0" TextWrapping="Wrap" Text="1920" VerticalAlignment="Top" Width="92" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
		<TextBox x:Name="txtPixelsTabletY" HorizontalAlignment="Left" Height="23" Margin="316,495,0,0" TextWrapping="Wrap" Text="1200" VerticalAlignment="Top" Width="92" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
		<Label Content="Tablet X Pixels" HorizontalAlignment="Left" Margin="315,416,0,0" VerticalAlignment="Top"/>
		<Label Content="Tablet Y Pixels" HorizontalAlignment="Left" Margin="316,470,0,0" VerticalAlignment="Top"/>
	</Grid>
</UserControl>